package com.nuboat.easyjsf.action;

import com.nuboat.easyjsf.BaseObject;
import java.util.Date;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;

/**
 *
 * @since   2010-05-03
 * @author  nuboat
 * @version 0.1
 *
 */
public abstract class BaseAction extends BaseObject {

    public HttpSession getSession() {
        FacesContext context = FacesContext.getCurrentInstance();
        return (HttpSession) context.getExternalContext().getSession(false);
    }

    public String getTimenow() {
        return new Date().toString();
    }
}